package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @Author yisen
 * @Date 2024/3/9 16:49
 * @PackageName:com.sky.mapper
 * @ClassName: UserMapper
 * @Description:
 * @Version 1.0
 */
@Mapper
public interface UserMapper {

    void insert(User user);

    @Select("select * from user where openid = #{openid}")
    User getByOpenid(String openid);
}
